package com.zhixin.weChat.timeTask;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.zhixin.weChat.itChat.SendMessageToFri;

/**
 * 
 * @author 致心
 * @name TImeTask.java
 * @package_name com.zhixin.weChat.timeTask
 * @project_name bootWeChatRobot
 * @date 2019年10月3日 上午9:36:32
 */
@Component
public class TImeTask {

	private static final Logger log = LoggerFactory.getLogger(TImeTask.class);

	@Scheduled(cron = "0 0 3 * * ?")
	public void sendMessage() {
		log.info("给媳妇发送天气消息");
		// MessageTools.sendMsgById("可以发送消息了", "filehelper");
		new SendMessageToFri().timeReturnUserName();
	}

}
